|
|
|
| 6. When youre done, close the list. Youll now see the choices listed in the list box. 7. Run this form so you can see how the list box reacts when you click an item and whether you have to scroll to see more options. Notice that the scrollbar will automatically appear if you have more options than will fit into the area in which you drew the list box. See Figure 4.1. | | | | |
|
|
|
|
Figure 4.1
The list box on the Employee Information form. |
|
|
|
|  | Examples Filename: Employee8.frm A list box will present multiple items to a user to select from. The values can be entered at design time or at runtime. |
|
|
|
|
|
|
If you have more room horizontally, you might want to have the columns snake across rather than have the user scroll down to see more choices. Set the Columns property to a value greater than zero to create snaking columns. Figure 4.2 shows what happens when you set the Columns to 1. |
|
|
|
|
|